<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    *{margin: 0;padding: 0;}
    .drag{
        position: absolute;      
        width: 200px;
        height: 200px;
        background: lightskyblue;
        border-radius: 20px;
        cursor: pointer;
    }
    .drag h2{
        padding: 20px 0;
        font-size: 18px;
        text-align: center;
        color: antiquewhite;
    }
    </style>
</head>
<body>
<div id="drag" class="drag">
    <h2>这是一个拖拽效果</h2>
    <div>xxxxx</div>
</div>
<script src="js/script5.js">

</script>   
</body>
</html>